package cn.wolfcode.crm.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 销售小票
 */
@Getter@Setter
public class StockOutcomeBill extends BaseDomain {
    private static final long serialVersionUID = 1L;
	private String sn;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date inputTime;//销售时间
    private BigDecimal totalNumber;//总数
    private BigDecimal totalAmount;//合计总价
    private Double discount;//折扣
    private BigDecimal discountAmount;//折扣金额
    private BigDecimal receivables;//应收金额
    private Integer paykind;//支付类型
    private Member member;//会员信息
    private Employee operator;//收银销售人员
    private Integer billStatus = 1;//小票状态,1正常 3整单被退货
    private Depot depot;
    private List<StockOutcomeBillItem> items;
}
